package com.ruiyian.bridge.opreations.domain;

import com.ruiyian.common.annotation.Excel;
import com.ruiyian.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备报警对象 t_device_warn
 *
 * @author ruiyian
 * @date 2022-01-25
 */
public class TDeviceWarn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 设备(号)id */

    private String sbid;
    @Excel(name = "设备号")
    private String sensorNo;

    /** 设备状态(0异常,1正常) */
    @Excel(name = "状态", readConverterExp = "1=状态通讯正常,0=状态通讯异常")
    private Integer status;

    /** 删除状态 */
    private String delFlag;

    /** 处理意见 */
    @Excel(name = "处理意见")
    private String describes;
    private String addr;

    private String macaddr;

    @Excel(name = "最近报警时间")
    private String warnTime;

    public String getSensorNo() {
        return sensorNo;
    }

    public void setSensorNo(String sensorNo) {
        this.sensorNo = sensorNo;
    }

    public String getWarnTime() {
        return warnTime;
    }

    public void setWarnTime(String warnTime) {
        this.warnTime = warnTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSbid(String sbid)
    {
        this.sbid = sbid;
    }

    public String getSbid()
    {
        return sbid;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setDescribes(String describes)
    {
        this.describes = describes;
    }

    public String getDescribes()
    {
        return describes;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getMacaddr() {
        return macaddr;
    }

    public void setMacaddr(String macaddr) {
        this.macaddr = macaddr;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sbid", getSbid())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("describes", getDescribes())
            .toString();
    }
}
